package com.heima.filer;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties({MinIoProperties.class})
public class MinioConfiguration {
    @Bean
    public MinIoTemplate smsTemplate(MinIoProperties properties){
        return new MinIoTemplate(properties);
    }
}
